<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    		<title>题目管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<load href= "__JS__/jshelper.js" /> 
		<script type="text/JavaScript">
			function nchoiceedit(id){
				window.location.href="__URL__/nchoiceedit/id/"+id;
			}
			function nchoicedelete(id){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/nchoicedelete');
					postwith('__URL__/nchoicedelete',{id:id});
				}
			}
			
			window.onload=show;
		</script>
	</head>
	<body>	
		<layout name="Auth:header" />
    	<div class="container-fluid">
     		<div class="row-fluid">
  			  <layout name="Auth:leftmenu" />
              	 <div class="span8">
                    <div class="hero-unit">
                    	<h1>多选题库</h1>
                        <p style="font-size:12px">当前位置：
                        <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                        <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                        <a href='__URL__/choose1' class="nowpositionhref">测试管理</a>>
                        <a href='__URL__/choose2' class="nowpositionhref">题库</a>>
                        <a href='__URL__/nchoiceadd' class="nowpositionhref">多选编辑</a>>
                        多选题库	</p>			
                    </div>
	
	
          <form method="get" action="__URL__/nchoicedetail"   class="form-inline">
          <a href="__URL__/nchoiceadd" class="btn btn-success">继续添加</a><br>
          <table  class="table table-bordered table-striped" width="100%">
          	<thead>
            	<tr>
                	<th>
                    	<input type="text" name="name" placeholder="题目" class="span2" height="80px;">
                    </th>
                    <th>
                    	 <input type="text" name="nname" placeholder="编辑者" class="span2" height="80px;">
                    </th>
                    <th>
                    	 <code>所属课程：</code>
                            <select name="cname">
                              <option value =></option>
                              <volist name='cnlist' id='vo1'>
                                <option value =	{$vo1.name}>{$vo1.name}</option>
                              </volist>
                            </select>
                    </th>
                </tr>
                <tr>
                	<th colspan="3">
                    	<input name="submit" type="submit" value="查询" class="btn btn-primary">
                    </th>
                </tr>
            </thead>
          </table>
          <!-- 题目：
      <input type="text" name="name">
           编辑者：
      <input type="text" name="nname">
           所属课程：
            <select name="cname">
              <option value =></option>
              <volist name='cnlist' id='vo1'>
                <option value =	{$vo1.name}>{$vo1.name}</option>
              </volist>
            </select>
            <input name="submit" type="submit" value="查询">-->
          </form>
	
			<!--显示题目-->
			
				<table class="table table-striped table-bordered" width="100%">
					<thead >
						<tr id="table_nchoice_show_title">
							<th >题目</th>
							<th >所属课程</th>
							<th >编辑者</th>
							<th >操作</th>
						</tr>
					</thead>
					<load href"__PUBLIC__/js/list_show.js">
					<tbody id="tab">
						<volist name='list' id='vo' >
							<tr id="table_nchoice_show">							
								<td style="width:150px;">{$vo.name}</td>
								<td style="width:180px;">{$vo.cname}</td><!--所属课程-->
								<td style="width:180px;">{$vo.nname}</td><!--所属课程-->
								<td style="display:none;">{$vo.id}</td>	<!--题目ID-->
								<td style="width:100px">
									<a href="javascript:nchoiceedit('{$vo.id}')" class="btn btn-primary">编辑</a>
									<!--<input type="button" name="nchoiceedit"onClick="nchoiceedit({$vo.id})" value="编辑">-->
									<a  href="javascript:nchoicedelete('{$vo.id}')" class="btn btn-danger">删除</a>
									<!--<input name="delete_nchoice" type="reset" onClick="nchoicedelete({$vo.id})" value="删除">-->
								</td>
							</tr>
						</volist>
					</tbody>
					<!--  试卷名：
	            	<select name="testid">
	              		<volist name='tlist' id='vo1'>
	                		<option value =	{$vo1.id}>{$vo1.name}</option>
	              		</volist>
	           		 </select>  -->
				</table>
			
				<p class="pull-right">
					{$page}
				</p>
		</div>
		</div>
        </div>
	</body>
</html>